<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>新增礼包信息</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap-theme.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="${pageContext.request.contextPath }/js/jquery-3.1.1.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script
	src="${pageContext.request.contextPath }/js/common/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>

	<form action="/bsc/jhy/addtowne" id="fo"
		name="fo" method="post" class="form-inline"
		enctype="multipart/form-data"  >
		<table border="0" cellspacing="0" cellpadding="10" width="80%"
			class="table ">
			<h2 align="center">新增礼包信息</h2>

			<tr>
				<td width="15%" align="right">礼包名称:</td>
				<td width="35%"><input type="text" id="bag_name"
					name="bag_name" value="" class="form-control" /></td>
				<td width="15%" align="right">状态:</td>
				<td width="35%"><select name="status" id="status"
					class="form-control">
						<option value="1">在售</option>
						<option value="2">下架</option>
				</select></td>
			</tr>
			<tr>
				<td align="right">列表图片:</td>
				<td><input type="file" class="form-control" name="file1"></td>
				<td align="right">封面图片:</td>
				<td><input type="file" class="form-control" name="file2"></td>
			</tr>
			<tr>
				<td width="15%" align="right">护理项目：</td>
				<td colspan="3">
					<div align="center">
						<table class="table ">
							<tr>
								<td>项目名称</td>
								<td>价格（元）</td>
								<td>数量</td>
								<td>选择项目</td>
							</tr>
								<c:forEach items="${list }" var="list">
								<tr>
								<td>${list.project_name }</td>
								<td>${list.beauty_price }</td>
								<td>1</td>
								<td>已选项目</td>
							</tr>
								</c:forEach>
						</table>
					</div>
				</td>
			</tr>
			<tr>
				<td align="right">礼包价格:</td>
				<td><input type="text" id="qq" name="qq" class="form-control">元</td>
				<td align="right">开卡数量:</td>
				<td><input type="text" id="aa" name="aa" class="form-control"></td>
			</tr>
			<tr>
				<td align="right">每次最少购买量:</td>
				<td><input type="text" id="bb" name="bb" class="form-control">个</td>
				<td align="right">每次最大购买量:</td>
				<td><input type="text" id="cc" name="cc" class="form-control">元</td>
			</tr>
			<tr>
				<td align="right">允许购买次数:</td>
				<td><input type="text" id="dd" name="dd" class="form-control"></td>
				<td align="right">过期时间:</td>
				<td><input type="text" id="ee" name="ee" class="form-control">天</td>
			</tr>
			<tr>
				<td align="right">上架时间:</td>
				<td><input type="date" id="ff" name="ff" class="form-control"></td>
				<td align="right">下架时间:</td>
				<td><input type="date" id="gg" name="gg" class="form-control"></td>
			</tr>
			<tr>
				<td align="right">排序号:</td>
				<td><input type="text" id="kk" name="kk" class="form-control"></td>
				<td align="right">礼包介绍:</td>
				<td><input type="text" id="hh" name="hh" class="form-control"></td>
			</tr>
			<tr>
				<td align="right">购买说明</td>
				<td colspan="3"><textarea class="form-control" rows="10"
						cols="100" name="jj" id="jj"></textarea>

					<button class="btn btn-default" type="submit">
						<span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>
						保存
					</button></td>
			</tr>

		</table>
	</form>

</body>
</html>
<!-- <c:forEach items="${bnp }" var="bnp">
					<tr>
						<td>${bnp.project_name }</td>
						<td><input type="text" id="" value="${ }"></td>
						<td><input type="text" id="" value=""></td>
						<td><a class="btn btn-danger btn-xs"
						href="delBag/${bag.bag_id }" role="button"> <span
							class="glyphicon glyphicon-trash" aria-hidden="true"></span> 删除
					</a>
					<a class="btn btn-warning btn-xs" href="selectBagById/${bag.bag_id }"
						 role="button" id="selectBagById">详情</a></td></tr>
					</c:forEach> -->